<?php
require_once(PATH_MEDIA."component".DIRECTORY_SEPARATOR."phpmailer".DIRECTORY_SEPARATOR."class.phpmailer.php");

class Helper_Mailer extends PHPMailer
{
	function __construct()
	{
		$this->SetFrom(MAIL_FROM, MAIL_FROMNAME);
		$this->CharSet		= 'utf-8';
		$this->ContentType	= 'text/html';
		if(SMTP_ENABLE ){
			$this->IsSMTP();
			if(SMTP_SMTP_AUTH){
				$this->SMTPAuth = SMTP_SMTP_AUTH;
				$this->Username = SMTP_USERNAME;
				$this->Password = SMTP_PASSWORD;
			}
		}
		$this->Host			= MAIL_HOST;
		$this->Port			= MAIL_PORT;
		//$this->PluginDir	= SYSTEM_UTILITY;
	}
}
?>